package cn.cjxy.day14springboot_mybatis01.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @author huangjie
 * @date 2025/10/19
 */
@Data//get and set
@AllArgsConstructor//全参构造
@NoArgsConstructor
@ToString
public class Student {
   private Long id;
   private String         name;
   private Integer age;
   private String         gender;
   private Date birthday;
   private String         tel;
   private Integer       classId;
   private SClass         sClass;

    public Student(Long id, String name, Integer age, String gender, Date birthday, String tel) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.birthday = birthday;
        this.tel = tel;
    }
}
